Javascript Some Function